/*
 * 文件名：ResultConstant.java
 * 版权：Copyright by will_awoke
 * 描述：
 * 修改人：lyh
 * 修改时间：2014-4-16
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */

package com.qbgs.constant;

/**
 * webservice返回结果常量
 * @author will_awoke
 * @version 2014-4-16
 * @see ResultConstant
 * @since
 */
public class ResultConstant
{

    //resultCode //resultMsg

    /**
     * 操作成功_Code
     */
    public final static String OPERATE_SUCCESS_CODE = "0000";

    /**
     * 操作成功_Msg
     */
    public final static String OPERATE_SUCCESS_MSG = "Succeed";

    /**
     * 未知错误_Code
     */
    public final static String OPERATE_ERROR_CODE = "9999";

    /**
     * 未知错误_Msg
     */
    public final static String OPERATE_ERROR_MSG = "Unknown Error";

    /**
     * 请求超时_Code
     */
    public final static String OPERATE_TIMEOUT_CODE = "9998";

    /**
     * 请求超时_Msg
     */
    public final static String OPERATE_TIMEOUT_MSG = "TimeOut";

    /**
     * 未格式化_Code
     */
    public final static String OPERATE_UNFORMATTED_CODE = "9997";

    /**
     * 未格式化_Msg
     */
    public final static String OPERATE_UNFORMATTED_MSG = "Unformatted Args";

    /**
     * 非法请求操作码_Code
     */
    public final static String OPERATE_ILLEGAL_CODE = "9996";

    /**
     * 非法请求操作码_Msg
     */
    public final static String OPERATE_ILLEGAL_MSG = "Illegal OpCode";

    /**
     * 未认证的appCode and apiKey_Code
     */
    public final static String OPERATE_UNAUTHERIZED_CODE = "9995";

    /**
     * 未认证的appCode and apiKey_Msg
     */
    public final static String OPERATE_UNAUTHERIZED_MSG = "Unautherized Service";

    /**
     * 数据库中不存在_Code
     */
    public final static String OPERATE_NOT_EXIST_CODE = "9994";

    /**
     * 数据库中不存在_Msg
     */
    public final static String OPERATE_NOT_EXIST_MSG = "Not Exist In Database";
    
    /**
     * 插入数据库失败_Code
     */
    public final static String OPERATE_INSERT_FAIL_CODE = "9993";

    /**
     * 插入数据库失败_Msg
     */
    public final static String OPERATE_INSERT_FAIL_MSG = "Insert Fail";

    /**
     * 从数据库中删除失败_Code
     */
    public final static String OPERATE_DELETE_FAIL_CODE = "9992";

    /**
     * 从数据库中删除失败_Msg
     */
    public final static String OPERATE_DELETE_FAIL_MSG = "Delete Fail";

    /**
     * 从数据库中查询失败_Code
     */
    public final static String OPERATE_QUERY_FAIL_CODE = "9991";

    /**
     * 从数据库中查询失败_Msg
     */
    public final static String OPERATE_QUERY_FAIL_MSG = "Query Fail";

    /**
     * 发生事务回滚_Code
     */
    public final static String OPERATE_ROLLBACK_CODE = "9990";

    /**
     * 发生事务回滚_Msg
     */
    public final static String OPERATE_ROLLBACK_MSG = "Transactional Rollback";
    
    /**
     * 数据库中已存在_Code
     */
    public final static String OPERATE_ALREADY_EXIST_CODE = "9989";

    /**
     * 数据库中已存在_Msg
     */
    public final static String OPERATE_ALREADY_EXIST_MSG = "Already Exist In Database";
    
    /**
     * 数据库未连接_Code
     */
    public final static String OPERATE_DB_UNCONNECTED_CODE = "9988";

    /**
     * 数据库未连接_Msg
     */
    public final static String OPERATE_DB_UNCONNECTED_MSG = "Fail To Build Connection With Database";
    
    /**
     * openfire服务未连接_Code
     */
    public final static String OPERATE_OPENFIRE_UNCONNECTED_CODE = "9987";

    /**
     * openfire服务未连接_Msg
     */
    public final static String OPERATE_OPENFIRE_UNCONNECTED_MSG = "Fail To Build Connection With Openfire";
    
    /**
     * 访问openfire页面失败_Code
     */
    public final static String OPERATE_OPENFIRE_UNACCESS_CODE = "9986";

    /**
     * 访问openfire页面失败_Msg
     */
    public final static String OPERATE_OPENFIRE_UNACCESS_MSG = "Fail To Access Jsp Of Openfire";
    
    /**
     * access_token过期_Code
     */
    public final static String OPERATE_INVALID_TOKEN_CODE = "0007";

    /**
     * access_token过期_Msg
     */
    public final static String OPERATE_INVALID_TOKEN_MSG = "Period Out Of Access Token";
    
    /**
     * access_token为空_Code
     */
    public final static String OPERATE_EMPTY_TOKEN_CODE = "0006";

    /**
     * access_token为空_Msg
     */
    public final static String OPERATE_EMPTY_TOKEN_MSG = "None Access Token";
    
    /**
     * 请求提交数据为空_Code
     */
    public final static String OPERATE_HAVE_INVALIDUSER_CODE = "0005";

    /**
     * 请求提交数据为空_Msg
     */
    public final static String OPERATE_HAVE_INVALIDUSER_MSG = "Have Invalid User";

    /**
     * 请求提交数据为空_Code
     */
    public final static String OPERATE_BAD_POSTDATA_CODE = "0004";

    /**
     * 请求提交数据为空_Msg
     */
    public final static String OPERATE_BAD_POSTDATA_MSG = "Empty Post Data";

    /**
     * 请求失败_Code
     */
    public final static String OPERATE_BAD_REQUEST_CODE = "0003";

    /**
     * 请求失败_Msg
     */
    public final static String OPERATE_BAD_REQUEST_MSG = "Bad Request(call on openfire server fail)";

    /**
     * 无效参数_Code
     */
    public final static String OPERATE_INVALID_PARAM_CODE = "0002";

    /**
     * 无效参数_Msg
     */
    public final static String OPERATE_INVALID_PARAM_MSG = "Bad Param(the lack of post data)";

    /**
     * 捕获到异常_Code
     */
    public final static String OPERATE_CATCH_EXCEPTION_CODE = "0001";

    /**
     * 捕获到异常_Msg
     */
    public final static String OPERATE_CATCH_EXCEPTION_MSG = "Catch Exception";

}
